package com.hub.realtime.resource.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hub.realtime.common.annotation.Excel;
import com.hub.realtime.common.core.domain.BaseEntity;

/**
 * git编译模块对象 res_module_jar
 *
 * @author wupeng
 * @date 2022-01-10
 */
@Data
@TableName("res_module_jar")
public class ResModuleJar extends BaseEntity<ResModuleJar>
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id", type= IdType.AUTO)
    private Long id;

    /** jar名称 */
    @TableField("name")
    @Excel(name = "jar名称")
    private String name;

    /** 存放路径 */
    @TableField("path")
    @Excel(name = "存放路径")
    private String path;

    /** 模块id */
    @TableField("module_id")
    @Excel(name = "模块id")
    private Long moduleId;

    /** 随机code */
    @TableField("uid")
    @Excel(name = "随机code")
    private String uid;

    @TableField("remark")
    private String remark;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("path", getPath())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("updateBy", getUpdateBy())
                .append("moduleId", getModuleId())
                .append("uid", getUid())
                .toString();
    }
}

